package com.dd.service;

import com.dd.dao.VipMapper;
import com.dd.pojo.Vip;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VipServiceImpl implements VipService{
    @Autowired
    private VipMapper vipMapper;

    public List<Vip> selectVip() {
        return vipMapper.selectVip();
    }

    public int addvipuser(Vip vip) {
        return vipMapper.addvipuser(vip);
    }

    public int updateVipById(Vip vip) {
        return vipMapper.updateVipById(vip);
    }

    public int daletevipById(int id) {
        return vipMapper.daletevipById(id);
    }

    public List<Vip> selectbyname(String name) {
        return vipMapper.selectbyname(name);
    }


}
